package com.rfid.spec.pc301;
import com.rfid.reader.DriverPC301;
import com.rfid.spec.L0_PICC_HANDLE;
import com.rfid.spec.SpecConnectParams;
import com.rfid.spec.SpecTagAccess;
import com.rfid.spec.TagOperateHandle;
import com.rfid.spec.tag.L0_PICC_ICODESLI;

public class AN_PC301_PICC_ICODESLI extends L0_PICC_ICODESLI {
    public static AN_PC301_PICC_ICODESLI create() {
        return new AN_PC301_PICC_ICODESLI();
    }

    public int Connect(SpecConnectParams Params, TagOperateHandle hOut) {
        DriverPC301 pT = (DriverPC301) this.m_reader;
        if (pT == null) return -1;
        AN_PC301_APL_ISO15693 apl = (AN_PC301_APL_ISO15693) this.m_apl;
        if (apl == null) return -1;
        return apl.Connect(this, Params, hOut);
    }

    public int Disconnect(L0_PICC_HANDLE h) {
        return 0;
    }

    public int Access(L0_PICC_HANDLE h, SpecTagAccess tagAccess) {
        return AN_PC301_ISO15693PICCAccess.TagAccess(h, tagAccess);
    }

    public long GetHardId() {
        return 1L;
    }
}
